package com.dengyafei.mapper;

import com.dengyafei.bean.EnterpriseEntity;
import com.dengyafei.bean.EnterpriseEntityExample;

import java.util.List;

import com.dengyafei.bean.PositionEntity;
import com.dengyafei.domin.dto.EnterpriseLoadDTO;
import com.dengyafei.domin.dto.EnterpriseUpdatePasswordDTO;
import com.dengyafei.domin.dto.ResetPasswordDTO;
import com.dengyafei.domin.vo.EnterpriseRegisterVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author 邓亚非
 */
@Mapper
public interface EnterpriseEntityMapper {
    int countByExample(EnterpriseEntityExample example);

    int deleteByExample(EnterpriseEntityExample example);

    int deleteByPrimaryKey(Integer hid);

    int insert(EnterpriseEntity record);

    int insertSelective(EnterpriseEntity record);

    List<EnterpriseEntity> selectByExample(EnterpriseEntityExample example);

    EnterpriseEntity selectByPrimaryKey(Integer hid);

    int updateByExampleSelective(@Param("record") EnterpriseEntity record, @Param("example") EnterpriseEntityExample example);

    int updateByExample(@Param("record") EnterpriseEntity record, @Param("example") EnterpriseEntityExample example);

    int updateByPrimaryKeySelective(EnterpriseEntity record);

    int updateByPrimaryKey(EnterpriseEntity record);

    EnterpriseEntity queryAllByHname(String hname);

    Integer enterpriseRegister(EnterpriseRegisterVO enterpriseRegisterVO);

    Integer enterpriseFindPassword(ResetPasswordDTO resetPasswordDTO);

    String EnterpriseQueryByHname(String userInfo);

    Integer updatePassword(EnterpriseUpdatePasswordDTO enterpriseUpdatePasswordDTO);

    List<String> queryByList(List<PositionEntity> list);

    List<Integer> queryHidByCompany(EnterpriseLoadDTO enterpriseLoadDTO);

    List<String> queryCompanies(List<Integer> list);

    List<EnterpriseEntity> queryEnterprises();
}